<!DOCTYPE html>
<html lang="zh-Hans">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">
<link rel="stylesheet" href="/blog/lib/font-awesome/css/font-awesome.min.css">


<script id="hexo-configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    hostname: new URL('https://guodh.gitee.io/blog').hostname,
    root: '/blog/',
    scheme: 'Pisces',
    version: '7.7.1',
    exturl: false,
    sidebar: {"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},
    copycode: {"enable":true,"show_result":true,"style":null},
    back2top: {"enable":true,"sidebar":false,"scrollpercent":false},
    bookmark: {"enable":false,"color":"#222","save":"auto"},
    fancybox: false,
    mediumzoom: false,
    lazyload: false,
    pangu: false,
    comments: {"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},
    algolia: {
      appID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    },
    localsearch: {"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},
    path: 'search.xml',
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}
  };
</script>

  <meta name="description" content="近期，考虑到Job系统需要打很多的日志（调用别人的API真的是坑呀，一不留神别人就把你限流了，还是别人内部服务器的问题，所以还是要多打印些日志）。笔者想优化下日志系统，然后成功又把自己拐坑里了。不过也是因为自己对于日志系统不够充分了解，借此机会更好的了解日志系统。 优化的手段比较简单：  生产环境去除打印控制台日志 将RollingFile改为RollingRandomAccessFile 添加D">
<meta property="og:type" content="article">
<meta property="og:title" content="重新认识日志系统">
<meta property="og:url" content="https://guodh.gitee.io/blog/2018/12/01/2018/%E9%87%8D%E6%96%B0%E8%AE%A4%E8%AF%86%E6%97%A5%E5%BF%97%E7%B3%BB%E7%BB%9F/index.html">
<meta property="og:site_name" content="蛋蛋的小屋">
<meta property="og:description" content="近期，考虑到Job系统需要打很多的日志（调用别人的API真的是坑呀，一不留神别人就把你限流了，还是别人内部服务器的问题，所以还是要多打印些日志）。笔者想优化下日志系统，然后成功又把自己拐坑里了。不过也是因为自己对于日志系统不够充分了解，借此机会更好的了解日志系统。 优化的手段比较简单：  生产环境去除打印控制台日志 将RollingFile改为RollingRandomAccessFile 添加D">
<meta property="og:locale">
<meta property="article:published_time" content="2018-12-01T04:40:11.000Z">
<meta property="article:modified_time" content="2018-12-02T03:08:03.000Z">
<meta property="article:author" content="RunningEgg">
<meta property="article:tag" content="Log">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://guodh.gitee.io/blog/2018/12/01/2018/%E9%87%8D%E6%96%B0%E8%AE%A4%E8%AF%86%E6%97%A5%E5%BF%97%E7%B3%BB%E7%BB%9F/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome: false,
    isPost: true
  };
</script>

  <title>重新认识日志系统 | 蛋蛋的小屋</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-meta">

    <div>
      <a href="/blog/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">蛋蛋的小屋</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
        <p class="site-subtitle">来了就看看吧，没有刀剑只有故事</p>
  </div>

  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-fw fa-home"></i>Home</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/blog/about/" rel="section"><i class="fa fa-fw fa-user"></i>About</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>Archives</a>

  </li>
        <li class="menu-item menu-item-book">

    <a href="/blog/book/" rel="section"><i class="fa fa-fw fa-archive"></i>book</a>

  </li>
  </ul>

</nav>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-Hans">
    <link itemprop="mainEntityOfPage" href="https://guodh.gitee.io/blog/2018/12/01/2018/%E9%87%8D%E6%96%B0%E8%AE%A4%E8%AF%86%E6%97%A5%E5%BF%97%E7%B3%BB%E7%BB%9F/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/avatar.gif">
      <meta itemprop="name" content="RunningEgg">
      <meta itemprop="description" content="写下我的点点滴滴，写下我对这个世界的看法，还有我内心锁崇拜的技术">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="蛋蛋的小屋">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          重新认识日志系统
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>

              <time title="Created: 2018-12-01 12:40:11" itemprop="dateCreated datePublished" datetime="2018-12-01T12:40:11+08:00">2018-12-01</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">Edited on</span>
                <time title="Modified: 2018-12-02 11:08:03" itemprop="dateModified" datetime="2018-12-02T11:08:03+08:00">2018-12-02</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>近期，考虑到Job系统需要打很多的日志（调用别人的API真的是坑呀，一不留神别人就把你限流了，还是别人内部服务器的问题，所以还是要多打印些日志）。笔者想优化下日志系统，然后成功又把自己拐坑里了。不过也是因为自己对于日志系统不够充分了解，借此机会更好的了解日志系统。</p>
<p>优化的手段比较简单：</p>
<ol>
<li>生产环境去除打印控制台日志</li>
<li>将RollingFile改为RollingRandomAccessFile</li>
<li>添加Disruptor的Jar，开启Log4j2的异步化</li>
</ol>
<p>ps：优化2是借用RollingRandomAccessFile中的buffer来提升IO效率，在开启Log4j2的异步化之后，笔者选择将RollingRandomAccessFile改回RollingFile。另外，异步化也不是十全十美的，在停止服务的时候会损失一部分日志的。如果能在停止服务的时候Sleep一段时间那是最好的，本项目对于一部分日志不在意所以也就没加Sleep。</p>
<a id="more"></a>

<h2 id="步骤1：剔除Log4j1"><a href="#步骤1：剔除Log4j1" class="headerlink" title="步骤1：剔除Log4j1"></a>步骤1：剔除Log4j1</h2><p>既然需要用到Log4J2，那么就需要将所有的Log4j1的Jar给剔除。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">mvn dependency:tree --&gt; tree.txt</span><br><span class="line"></span><br><span class="line">[INFO] |  +- org.apache.hadoop:hadoop-hdfs:jar:<span class="number">2.5</span><span class="number">.1</span>:compile</span><br><span class="line">[INFO] |  |  +- log4j:log4j:jar:<span class="number">1.2</span><span class="number">.17</span>:compile</span><br></pre></td></tr></table></figure>
<p>把依赖树打印出来，发现hdfs的Jar下有Log41，找准Log4j1，使用：</p>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">&lt;exclusion&gt;</span><br><span class="line">  &lt;groupId&gt;log4j&lt;/groupId&gt;</span><br><span class="line">  &lt;artifactId&gt;log4j&lt;/artifactId&gt;</span><br><span class="line">&lt;/exclusion&gt;</span><br></pre></td></tr></table></figure>
<p>结果发现没有生效……哔了狗了。这个Jar是包含在Biz层的pom中，索性我直接把Biz的Log4j1给剔除了。<br>世界应该安静了吧，结果报错了。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level</span><br><span class="line">	at java.net.URLClassLoader.findClass(URLClassLoader.java:<span class="number">381</span>)</span><br><span class="line">	at java.lang.ClassLoader.loadClass(ClassLoader.java:<span class="number">424</span>)</span><br><span class="line">	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:<span class="number">349</span>)</span><br><span class="line">	at java.lang.ClassLoader.loadClass(ClassLoader.java:<span class="number">357</span>)</span><br><span class="line">	... <span class="number">66</span> more</span><br></pre></td></tr></table></figure>
<p>不应该呀网上都说日志系统都是使用common-log或者slf4j，除非是直接使用Log41的代码~ 看代码hdfs也是用的common-log呀。查了两天发现hdfs使用了hdfs的INFO级别的常量…………所以，Log4j1不能删除，坑爹呀。</p>
<h2 id="步骤2：隔离Log4j1"><a href="#步骤2：隔离Log4j1" class="headerlink" title="步骤2：隔离Log4j1"></a>步骤2：隔离Log4j1</h2><p>行吧，既然Hdfs你是大爷，你要用就用呗。但是打印日志如何嫁接到Log4j2上面，这个就是我要做的工作了。万能的google告诉我添加jcl-over-slf4j的Jar就可以解决问题，jcl-over-slf4j能够将commom-log嫁接到slf4j上，然后添加log4j-slf4j-impl:jar:2.7的Jar就能使用Log4j2。</p>
<p>这就陷入了我的知识盲区，为何添加Jar就能成功切换日志系统？<br>解决方案：<strong>万事不懂先google看别人原理讲解，然后在自己乖乖看源码。</strong></p>
<h2 id="Commom-log原理"><a href="#Commom-log原理" class="headerlink" title="Commom-log原理"></a>Commom-log原理</h2><p>commom-log：</p>
<ol>
<li>从System.properties中查找LogFactory</li>
<li>从SPI来找</li>
<li>使用默认的LogFactoryImpl</li>
</ol>
<p>为了方便大家理解，笔者把代码给抠了出来，还把常量给替换了方便看，可自行在common-log 1.2中搜索找到。</p>
<p>第一步，从System.properties中查找LogFactory</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">String factoryClass = getSystemProperty(<span class="string">&quot;org.apache.commons.logging.LogFactory&quot;</span>, <span class="keyword">null</span>);</span><br><span class="line">factory = newFactory(factoryClass, baseClassLoader, contextClassLoader);</span><br></pre></td></tr></table></figure>
<p>第二步，从SPI来找</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">final</span> InputStream is = getResourceAsStream(contextClassLoader, <span class="string">&quot;META-INF/services/org.apache.commons.logging.LogFactory&quot;</span>);</span><br><span class="line">...</span><br><span class="line">...</span><br><span class="line">factory = newFactory(factoryClassName, baseClassLoader, contextClassLoader );</span><br></pre></td></tr></table></figure>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">public</span> InputStream <span class="title">getResourceAsStream</span><span class="params">(String name)</span> </span>&#123;</span><br><span class="line">    URL url = getResource(name);</span><br><span class="line">    <span class="keyword">try</span> &#123;</span><br><span class="line">        <span class="keyword">return</span> url != <span class="keyword">null</span> ? url.openStream() : <span class="keyword">null</span>;</span><br><span class="line">    &#125; <span class="keyword">catch</span> (IOException e) &#123;</span><br><span class="line">        <span class="keyword">return</span> <span class="keyword">null</span>;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>ps:使用Java 1.6提供的<strong>java.util.ServiceLoader</strong>也是不错的选择，dubbo即其他很多框架都是SPI的最好实践者。</p>
<p>第三步，使用默认的LogFactoryImpl</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">factory = newFactory(<span class="string">&quot;org.apache.commons.logging.impl.LogFactoryImpl&quot;</span>, thisClassLoader, contextClassLoader);</span><br></pre></td></tr></table></figure>
<p>以下是每个会去寻找的Logger：</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">final</span> String[] classesToDiscover = &#123;</span><br><span class="line">        LOGGING_IMPL_LOG4J_LOGGER,</span><br><span class="line">        <span class="string">&quot;org.apache.commons.logging.impl.Jdk14Logger&quot;</span>,</span><br><span class="line">        <span class="string">&quot;org.apache.commons.logging.impl.Jdk13LumberjackLogger&quot;</span>,</span><br><span class="line">        <span class="string">&quot;org.apache.commons.logging.impl.SimpleLog&quot;</span></span><br><span class="line">&#125;;</span><br></pre></td></tr></table></figure>
<h2 id="Slf4j原理"><a href="#Slf4j原理" class="headerlink" title="Slf4j原理"></a>Slf4j原理</h2><p>从classPath中查找，将StaticLoggerBinder绑定到 Enumeration<URL> paths 上。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">ClassLoader loggerFactoryClassLoader = LoggerFactory.class.getClassLoader();</span><br><span class="line">Enumeration&lt;URL&gt; paths;</span><br><span class="line"><span class="keyword">if</span> (loggerFactoryClassLoader == <span class="keyword">null</span>) &#123;</span><br><span class="line">    paths = ClassLoader.getSystemResources(<span class="string">&quot;org/slf4j/impl/StaticLoggerBinder.class&quot;</span>);</span><br><span class="line">&#125; <span class="keyword">else</span> &#123;</span><br><span class="line">    paths = loggerFactoryClassLoader.getResources(<span class="string">&quot;org/slf4j/impl/StaticLoggerBinder.class&quot;</span>);</span><br><span class="line">&#125;</span><br><span class="line"><span class="keyword">while</span> (paths.hasMoreElements()) &#123;</span><br><span class="line">    URL path = paths.nextElement();</span><br><span class="line">    staticLoggerBinderPathSet.add(path);</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>可以看到log4j-slf4j-impl:jar:2.7中就有StaticLoggerBinder.class这个类。不同的日志系统是通过搜寻Jar中StaticLoggerBinder.class这个类来实现的（蛋疼的是还必须得是org/slf4j/impl/包名下，看来只得是使用官方的Jar了）。StaticLoggerBinder 利用门面模式来掩盖了不同日志系统实现的日志系统的方式，使用者只要关注插拔所需要的Jar即可。</p>
<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><p>可以看到Commom-log和Slf4j为我们提供了两种做插件化服务很好的思路。Common-log使用接口（SPI的模式）或者是Slf4j使用门面模式（StaticLoggerBinder.class）来实现插件化，都是不错的选择。</p>
<p>最后，推荐一波Log4j2的异步化。<br>性能测试可看：</p>
<blockquote>
<p><a href="https://www.jianshu.com/p/570b406bddcd">https://www.jianshu.com/p/570b406bddcd</a></p>
</blockquote>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/blog/tags/Log/" rel="tag"># Log</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/blog/2018/11/17/2018/Hbase%E4%BB%8E%E5%85%A5%E9%97%A8%E5%88%B0%E5%AE%9E%E8%B7%B5/" rel="prev" title="Hbase从入门到实践">
      <i class="fa fa-chevron-left"></i> Hbase从入门到实践
    </a></div>
      <div class="post-nav-item">
    <a href="/blog/2018/12/22/2018/%E6%8D%A2%E4%B8%AA%E8%A7%92%E5%BA%A6%E7%9C%8BJava%E7%9A%84Thread/" rel="next" title="换个角度看Java的Thread">
      换个角度看Java的Thread <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let activeClass = CONFIG.comments.activeClass;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%AD%A5%E9%AA%A41%EF%BC%9A%E5%89%94%E9%99%A4Log4j1"><span class="nav-number">1.</span> <span class="nav-text">步骤1：剔除Log4j1</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%AD%A5%E9%AA%A42%EF%BC%9A%E9%9A%94%E7%A6%BBLog4j1"><span class="nav-number">2.</span> <span class="nav-text">步骤2：隔离Log4j1</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Commom-log%E5%8E%9F%E7%90%86"><span class="nav-number">3.</span> <span class="nav-text">Commom-log原理</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Slf4j%E5%8E%9F%E7%90%86"><span class="nav-number">4.</span> <span class="nav-text">Slf4j原理</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%80%BB%E7%BB%93"><span class="nav-number">5.</span> <span class="nav-text">总结</span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">RunningEgg</p>
  <div class="site-description" itemprop="description">写下我的点点滴滴，写下我对这个世界的看法，还有我内心锁崇拜的技术</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">89</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-tags">
        <span class="site-state-item-count">24</span>
        <span class="site-state-item-name">tags</span>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="mailto:guodh_1@163.com" title="E-Mail → mailto:guodh_1@163.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">RunningEgg</span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> v5.3.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">Theme – <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a> v7.7.1
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/blog/lib/anime.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/pisces.js"></script>


<script src="/blog/js/next-boot.js"></script>




  















  

  

</body>
</html>
